package cn.edu.zafu.bigdata.x.wgj.c;

class Animal {
    public void makesound(){
        System.out.println("Animal sound");
    }
}
class Dog extends Animal{
    @Override
    public void makesound(){
        System.out.println("Wood!");
    }
}
class Cat extends Animal{
    @Override
    public void makesound(){
        System.out.println("Meow!");
    }
}
public class TestAnimal{
    public static void main(String[] arges){
        Dog dog=new Dog();
        dog.makesound();
        Cat cat=new Cat();
        cat.makesound();
    }
}